package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type WolfKillGameRouter struct {}

// InitWolfKillGameRouter 初始化 狼人杀对局 路由信息
func (s *WolfKillGameRouter) InitWolfKillGameRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	WKGRouter := Router.Group("WKG").Use(middleware.OperationRecord())
	WKGRouterWithoutRecord := Router.Group("WKG")
	WKGRouterWithoutAuth := PublicRouter.Group("WKG")
	{
		WKGRouter.POST("createWolfKillGame", WKGApi.CreateWolfKillGame)   // 新建狼人杀对局
		WKGRouter.DELETE("deleteWolfKillGame", WKGApi.DeleteWolfKillGame) // 删除狼人杀对局
		WKGRouter.DELETE("deleteWolfKillGameByIds", WKGApi.DeleteWolfKillGameByIds) // 批量删除狼人杀对局
		WKGRouter.PUT("updateWolfKillGame", WKGApi.UpdateWolfKillGame)    // 更新狼人杀对局
	}
	{
		WKGRouterWithoutRecord.GET("findWolfKillGame", WKGApi.FindWolfKillGame)        // 根据ID获取狼人杀对局
		WKGRouterWithoutRecord.GET("getWolfKillGameList", WKGApi.GetWolfKillGameList)  // 获取狼人杀对局列表
	}
	{
	    WKGRouterWithoutAuth.GET("getWolfKillGamePublic", WKGApi.GetWolfKillGamePublic)  // 狼人杀对局开放接口
	}
}
